import nose
from test import test_validate
# print help(nose)

if __name__ == '__main__':
    nose.run()
# REPEAT WITH EMPTY DB
# REPEAT WITH SQLITE
# REPEAT NOT IN DEBUG MODE
#===============================================================================
# Additional Tests
#===============================================================================
# validate_test.error_messages()
# validate_test.save_duplicate_group_test()


#===============================================================================
# GOALS
#===============================================================================

# A_DO: 10 Add groups to users
# A_DO: 12 Link login to edit rights etc(authorize.py)
# A_DO: 58 Edit Group memberships
# A_DO: 15 Tidy up code
# A_DO: Test that you can't add 'fred' if 'Fred' exists
# K_DO: why is  pragma cache not switching with $object.no_cache
# A_DO: 16 add web context to sql alchemy
# A_DO: 50 Add menu
# A_DO: 60 Add groups to GUI
# A_DO: 75 Make not found page more generic
# A_DO: 14 Add testing
# GOAL: 3 Create User and Group GUI
# GOAL: 4 handle record locking
#J_DO: handle adding an existing user
#J_DO: handle url for non existing user
#K_DO: Centralise regex expressions
#k_DO: Add time.sleep decorator to simulate web server
#J_DO: disallow null db entries for user name etc
#L_DO: Add tests /handling for absent database
#L_DO: Add custom not found message
#L_DO: Standardise HTML page titles


#===============================================================================
# Test History
#===============================================================================
# 090326 23 tests